{% extends 'base.html' %}

{% block body %}
	<div class="search_bar clearfix">
		<a href="/" class="logo fl"><img src="/static/images/logo.png"></a>
		<div class="sub_page_name fl">|&nbsp;&nbsp;&nbsp;&nbsp;用户中心</div>
		<div class="search_con fr">
			<input type="text" class="input_text fl" name="" placeholder="搜索商品">
			<input type="button" class="input_btn fr" name="" value="搜索">
		</div>		
	</div>

	<div class="main_con clearfix">
		<div class="left_menu_con clearfix">
			<h3>用户中心</h3>
			<ul>
				<li><a href="/user/info/" class="active">· 个人信息</a></li>
				<li><a href="/user/order/">· 全部订单</a></li>
				<li><a href="/user/site/">· 收货地址</a></li>
			</ul>
		</div>
		<div class="right_content clearfix">
			<div class="info_con clearfix">
			<h3 class="common_title2">基本信息</h3>
					<ul class="user_info_list">
						<li><span>用户名：</span>{{ user_name }}</li>
						<li><span>邮箱：</span>{{ user_email }}</li>
					</ul>
			</div>

			{% if view_list %}
			<h3 class="common_title2">最近浏览</h3>
			<div class="has_view_list">
				<ul class="goods_type_list clearfix">
					{% for each in view_list %}
					<li>
						<a href="/{{ each.id }}/"><img src="/static/{{ each.product_img }}"></a>
						<h4><a href="/{{ each.id }}/">{{ each.product_name }}</a></h4>
						<div class="operate">
							<span class="prize">￥{{ each.product_price }}</span>
							<span class="unit">{{ each.product_unit }}</span>
							<a href="#" class="add_goods" title="加入购物车"></a>
						</div>
					</li>
					{% endfor %}
				</ul>
			</div>
			{% endif %}
		</div>
	</div>
{% endblock body %}